package com.wei.czz.common.vo.annex;

import com.wei.czz.common.jsr303.group.Save;
import com.wei.czz.common.jsr303.group.Update;
import com.wei.czz.common.tool.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2024-01-18 18:01:51
 * className: AnnexGroupVo
 * version: 1.0
 * description:
 */
@Getter
@Setter
public class AnnexGroupVo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "分组主键不能为空", groups = { Save.class, Update.class })
    private Long id;

    /**
     * 父级主键
     */
    @NotNull(message = "分组父级主键不能为空", groups = { Save.class, Update.class })
    private Long parentId;

    /**
     * 名称
     */
    @NotBlank(message = "分组名称不能为空", groups = { Save.class, Update.class })
    private String name;

    /**
     * 排序等级
     */
    @NotNull(message = "分组排序等级不能为空", groups = { Save.class, Update.class })
    private Integer sort;
}
